<script setup lang="ts">
import { ref } from 'vue'
// 第一种方法
import HumanContainer from './components/human-container/index.vue'
const humanContainer = ref<InstanceType<typeof HumanContainer>>()
// 第二种方法
// import HumanContainer from './components/human-container-second/index.vue'
// const humanContainer = ref<InstanceType<typeof HumanContainer>>()
const handleClick = () => {
  humanContainer.value?.toHello()
}
</script>
<template>
  <button @click="handleClick">点击</button>
  <HumanContainer ref="humanContainer" />
</template>
<style scoped></style>
